// 实例化vue对象
new Vue({
    el: "#vue-app",
    data: {
        name: "",
        age: ""
    },
    methods: {
        bindName: function () {
            this.name = this.$refs.name.value;
        }
    }
});